/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.aop.domain.BisLog;
import me.zhengjie.business.domain.AdlZhsq;
import me.zhengjie.business.domain.Hljg;
import me.zhengjie.business.domain.Jzdj;
import me.zhengjie.domain.LocalStorage;

import javax.persistence.*;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2022-04-15
**/
@Data
public class ZhsqDto implements Serializable {

    /** 居家照护申请ID */
    private Long bisZhsqId;

    /** 护理机构ID */
    private Hljg hljg;

    private String bisZhsqHljgBm;

    /** 失能人员ID */
    private String bisZhsqSnryId;

    /** 姓名 */
    private String bisZhsqSnryXm;

    /** 性别 */
    private String bisZhsqSnryXb;

    /** 身份证 */
    private String bisZhsqSnrySfz;

    /** 医保所属区县 */
    private String bisZhsqSnryYbssqx;

    /** 待遇开始日期 */
    private Date bisZhsqDykkrq;

    /** 待遇结束日期 */
    private Date bisZhsqDyjsrq;

    /** 享受待遇期 */
    private String bisZhsqXsdyq;

    /** ADL量表评分 */
    private String bisZhsqAdl;

    /** 申请状态 */
    private String bisZhsqZt;

    /** ADL批次主键ID */
    private String bisZhsqAdlPc;

    /** 失能等级 */
    private String bisZhsqSndj;

    /** 人员编号 */
    private String bisZhsqRybh;

    /** 年龄 */
    private String bisZhsqNl;

    /** 联系电话 */
    private String bisZhsqLxdh;

    /** 护理地址所在区县 */
    private String bisZhsqHldzSsqx;

    /** 详细地址 */
    private String bisZhsqHldzXxdz;

    /** 护理地址 */
    private String bisZhsqHldz;

    /** 监护人姓名 */
    private String bisZhsqJhrxm;

    /** 监护人电话 */
    private String bisZhsqJhrdh;

    /** 与失能人员关系 */
    private String bisZhsqGx;

    /** 申请原因 */
    private String bisZhsqSqyy;

    /** 医保卡号 */
    private String bisZhsqYbkh;

    /** 参保状态 */
    private String bisZhsqCbzt;

    /** 用户ID */
    private Long bisUserId;

    /** 商保公司ID */
    private String bisSbgsId;

    /** 评估公司ID */
    private String bisPggsId;

    /** 医保个人编号 */
    private String bisZhsqGrbh;

    /** 照护类别（居家和机构） */
    private String bisZhsqZhlb;

    /** 参保类型 */
    private String bisZhsqCblx;

    /** 申请类别 */
    private String bisZhsqSqlb;

    @OneToMany(mappedBy = "zhsq",cascade={CascadeType.PERSIST,CascadeType.REMOVE})
    private List<AdlZhsq> adlZhsqs;

    private Set<BisLog> bisLogs;

    @OneToMany(cascade={CascadeType.PERSIST,CascadeType.REMOVE})//级联保存、更新、删除、刷新;延迟加载
    @JoinColumn(name="ywid")//在book表增加一个外键列来实现一对多的单向关联
    private List<LocalStorage> fjs;

    /** 提交时间 */
    private Date bisZhsqTjsj;

    /** 复评标识 */
    private Date bisZhsqRelt;

    /** 原主键 */
    private Long bisOldId;

    /** 三表合一的失能等级 */
    private String bisZhsqHjSndj;

    /** 业务类型 */
    private String ywlx;

    /** 录入人 */
    private Long lrr;

    /** 录入人姓名 */
    private String lrrxm;

    /** 录入人部门 */
    private Long lrbm;

    /** 录入人部门名称 */
    private String lrbmmc;

    /** 录入时间 */
    private Timestamp lrsj;

    /** 更新人 */
    private Long gxr;

    /** 更新人姓名 */
    private String gxrxm;

    /** 更新人部门 */
    private Long gxbm;

    /** 更新人部门名称 */
    private String gxbmmc;

    /** 更新时间 */
    private Timestamp gxsj;

    /** 是否有效 */
    private String sfyx;

    /** 备注 */
    private String bz;

    private String payStatus;
    private String isPay;
}
